package smartcampus.scjava.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import smartcampus.scjava.POJO.DO.Course;
import smartcampus.scjava.POJO.DTO.CourseDTO;
import smartcampus.scjava.mapper.CourseMapper;
import smartcampus.scjava.service.CourseService;

import java.util.List;

/**
 * @author 苟森
 * @description 针对表【course】的数据库操作Service实现
 * @createDate 2023-12-19 16:05:35
 */
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course>
        implements CourseService {
    @Autowired
    CourseMapper courseMapper;

    @Override
    public List<CourseDTO> seletCouresList(String stuid) {
        return courseMapper.seletCouresList(stuid);

    }

    @Override
    public Boolean selectcourseid(int courseid) {
        return courseMapper.selectcourseid(courseid);
    }

    @Override
    public List<CourseDTO> selectAll() {
        return courseMapper.selectAll();

    }
}




